<?php

use App\Admin\Extensions\Form\Autocomplete;
use App\Admin\Extensions\Form\UEditor;
use Dcat\Admin\Admin;
use Dcat\Admin\Grid;
use Dcat\Admin\Form;
use Dcat\Admin\Grid\Filter;
use Dcat\Admin\Show;

/**
 * Dcat-admin - admin builder based on Laravel.
 * @author jqh <https://github.com/jqhph>
 *
 * Bootstraper for Admin.
 *
 * Here you can remove builtin form field:
 *
 * extend custom field:
 * Dcat\Admin\Form::extend('php', PHPEditor::class);
 * Dcat\Admin\Grid\Column::extend('php', PHPEditor::class);
 * Dcat\Admin\Grid\Filter::extend('php', PHPEditor::class);
 *
 * Or require js and css assets:
 * Admin::css('/packages/prettydocs/css/styles.css');
 * Admin::js('/packages/prettydocs/js/main.js');
 *
 */

Form::extend('uploadimagepro', \App\Admin\Extensions\UploadImagePro::class);
Form::extend('uploadmultimagepro', \App\Admin\Extensions\MultpleImagePro::class);
Form::extend('uploadfilepro', \App\Admin\Extensions\UploadFilePro::class);
Form::extend('uploadmultfilepro', \App\Admin\Extensions\MultpleFilePro::class);


Admin::asset()->alias('@echarts', [
    'js' => [
        '/vendor/echarts/echarts.min.js',
        '/vendor/echarts/extension/dataTool.min.js'
    ],
]);
Admin::css('/vendor/typeahead/typeaheadjs.css');
Admin::js('/vendor/typeahead/bootstrap3-typeahead.js');
Admin::js('/vendor/dcat-admin/dcat/plugins/moment/moment.min.js');

Admin::css('/vendor/ueditor/themes/default/css/ueditor.css');
Admin::js('/vendor/ueditor/ueditor.config.js');
Admin::js('/vendor/ueditor/ueditor.all.js');
Admin::js('/vendor/ueditor/lang/zh-cn/zh-cn.js');

Form::extend('ueditor', UEditor::class);
Form::extend('autocomplete', Autocomplete::class);
